<?php


namespace app\admin\controller;


use come\Db;
use come\View;

class DevelController extends AdminBase
{
    function indexAction(){
        View::instance()->assign('name','weiyi');
        return view();
    }

    function tableAction(){

        if($this->request->isPost()){
            $db_rows = Db::connect()->query("SHOW TABLE STATUS FROM www_comephp_me");
            return $this->success("",$db_rows,array('count'=>count($db_rows)));
        }else{
            View::instance()->assign('name','weiyi');
            return view();
        }
    }
}